﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Library
{
    class Newspaper : Makulatura
    {
        public string dateOfRelease { get; set; }
        public override string name
        {
            get
            {
                return (base.brend); 
            }
            set
            {
            }
        }
        public Newspaper(string DateOfRelease, int Price, string Brend, int Size) : base()
        {
            this.dateOfRelease = DateOfRelease;
            this.price = Price;
            this.brend = Brend;
            this.size = Size;
        }
        public override string ToString()
        {
            return this.name +"$"+ this.brend+"$" + this.price+ "$" + this.size+ "$" + this.dateOfRelease + "\r\n";
        }
    }
}
